package com.example.landrentpaymentbackend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("rent_record")
public class RentRecord {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("tai_account")
    private String taiAccount;

    @TableField("crop")
    private String crop;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("area")
    private BigDecimal area;

    @TableField("fee_standard")
    private String feeStandard;

    @TableField("unit_price")
    private BigDecimal unitPrice;

    @TableField("rent_due")
    private BigDecimal rentDue;

    @TableField("id_card")
    private String idCard;

    @TableField("start_end_date")
    private String startEndDate;

    @TableField("contract_no")
    private String contractNo;

    @TableField("breach")
    private String breach;

    @TableField("queue")
    private String queue;

    @TableField("pay_year")
    private String payYear;

    @TableField("plot_no")
    private String plotNo;

    @TableField("status")
    private String status;

    @TableField("paid_time")
    private LocalDateTime paidTime;

    @TableField("out_trade_no")
    private String outTradeNo;

//    // 添加以下时间字段映射
//    @TableField(value = "createTime", fill = FieldFill.INSERT)
//    private LocalDateTime createTime;
//
//    @TableField("editTime")
//    private LocalDateTime editTime;
//
//    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateTime;
}